<?php
/**
 * created by zzy
 * date: 2017/11/27 17:01
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class UcenterRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Ucenter\Controllers', 'prefix'=>'ucenter'], function ($router) {

            $router->post('/', 'IndexController@index');
            $router->post('setting', 'IndexController@setting');
            $router->post('checkPassword', 'IndexController@checkPassword');
            $router->post('setMobile', 'IndexController@setMobile')->middleware('apichecktoken');

            $router->get('/', 'IndexController@index');
            $router->get('setting', 'IndexController@setting');
            $router->get('checkPassword', 'IndexController@checkPassword');
            $router->get('setMobile', 'IndexController@setMobile');
        });
    }
}